(New Program)
G53 G0 Z-65.7
G53 G0 X-95.220 Y350
M64P0 (rack go forward)
M66 P0 L3 Q5 (wait up to 5 seconds for digital input 0 to turn on)
G4P1 (Wait one sec)
M64P1 (spindle open)
G4P1 (Wait one sec)
G53 G0 Z0
M65P1 (spindle close)
M65P0 (Rack go home)
M66 P0 L4 Q5 (wait up to 5 seconds for digital input 0 to turn off)
M30
